package com.tandashi.springbootstudy01.study;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class RemoveIf {

    public static void main(String[] args) {
        Integer [] str ={1,3,2,4,5,6,2};
        List<Integer> integers = Arrays.asList(str);
        List<Integer> list =new ArrayList<>();
        list.addAll(integers);
        list.removeIf(a->a==2 || a==1);
        System.out.println(list);

    }
}
